package com.hospital.api.factory;

import com.hospital.api.RemoteEndesctryptionService;
import com.hospital.common.core.module.entity.NFC.NFCResponse;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteEndesctryptionFactory implements FallbackFactory<RemoteEndesctryptionService> {
    @Override
    public RemoteEndesctryptionService create(Throwable cause) {
        return new RemoteEndesctryptionService() {
            @Override
            public String getorgone(NFCResponse requestVal) {
                    return "调用失败";
            }

            @Override
            public String getEnc(NFCResponse requestVal) {
                return "调用失败";
            }

            @Override
            public String getEncDesc(NFCResponse requestVal) {
                return "调用失败";
            }
        };
    }
}
